package com.woniu.service;

import com.woniu.entity.CapitalChannelEntity;
import com.woniu.entity.CapitalChannelExportVO;
import com.woniu.entity.CapitalChannelSearchVO;
import com.woniu.entity.SysAdminVO;

import java.util.List;

/**
 * @description: 用于处理资金渠道请求的service接口
 * @author Dante
 * @date: 2022/9/20 19:27
 */
public interface ICapitalChannelService {

    /**
     * @description: 查询所有资金渠道
     * @param: void
     * @return: List<CapitalChannelEntity>
     * @author Dante
     * @date: 2022/9/21 11:42
     */
    List<CapitalChannelEntity> findAll();

    /**
     * @description: 根据一组id查询所有资金或资产渠道
     * @param: CapitalChannelExportVO data
     * @return: List<CapitalChannelEntity>
     * @author Dante
     * @date: 2022/9/21 11:42
     */
    List<CapitalChannelEntity> selectChannels(CapitalChannelExportVO data);

    /**
     * @description: 根据前端复合条件查询所有资金渠道
     * @param: CapitalChannelEntity data
     * @return: List<CapitalChannelSearchVO>
     * @author Dante
     * @date: 2022/9/21 17:01
     */
    List<CapitalChannelEntity> searchWithLimits(CapitalChannelSearchVO data);


    Boolean addCapitalChannel(CapitalChannelEntity data);

    SysAdminVO findCurrentUser(String userName);

    Boolean updateChannelStatus(Integer channelId);

    CapitalChannelEntity checkChannelInfo(Integer channelId);

    Boolean updateCapitalChannel(CapitalChannelEntity data);

    List<SysAdminVO> getAllUserInfo();

    Boolean banChannel(Integer channelId);
}
